home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Linking question < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Linking question
  2. Sent:        6/17/96 11:13 AM
  3. Received:    6/17/96 11:31 AM
  4. From:        Mary Boetcher, mary_boetcher@quickmail.apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Mail*LinkĀ® SMTP               RE>Linking question
  9.  
  10. >>Is there a way to specify which types of data are valid for a link?  When
  11. >>the user does a drag, the Frame's CanAcceptDrop method is called. 
  12. >>However, if the user does a copy and then a PasteAs, I see no way to
  13. >>tell OpenDoc I am not interested in the data that is in the clipboard.  If I
  14. >>have a non-embedding part, I don't want to have a link to data that I
  15. >>cannot deal with. So how do I tell OpenDoc not to enable the Link option
  16. >>when there is a incompatible data type?
  17.  
  18. Override FW_CSelection::CanPasteAsLink to change settings in the Paste As dialog. Return false to disallow linking entirely. The value of 'setting' should be set to kODPasteAsMergeOnly (the default) if you don't want pasted data to be embedded. CanPasteAsLink is called for PasteAs both from the clipboard and from drag-and-drop.
  19.  
  20. Mary Boetcher
  21. ODF Person
  22.